Read enough of the navicache xml to generate useful cache pages with the
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 14 Apr 2004 17:09:18 +0000 (17:09 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 14 Apr 2004 17:09:18 +0000 (17:09 +0000)
HTML and TEXT outputs.

gpsbabel/navicache.c

index 1b9c6173ac358d2da62531d2ccbd1b15c0dcf65b..7cece8654b2eeabf127808b23c36e7727a21b36a 100644 (file)
@@ -179,7 +179,15 @@ nav_start(void *data, const char *el, const char **attr)
                        } else
                        if (0 == strcmp(ap[0], "cache_size")) {
                                wpt_tmp->gc_data.container = nc_mkcont(ap[1]);
-                       } 
+                       }  else
+                       if (0 == strcmp(ap[0], "description")) {
+                               wpt_tmp->gc_data.desc_long.is_html = 1;
+                               wpt_tmp->gc_data.desc_long.utfstring = xstrdup(ap[1]);
+                       } else
+                       if (0 == strcmp(ap[0], "comments")) {
+                               wpt_tmp->gc_data.desc_short.is_html = 1;
+                               wpt_tmp->gc_data.desc_short.utfstring = xstrdup(ap[1]);
+                       }
                }
                waypt_add(wpt_tmp);
        }